<?php
/**
 * UserChangePassword class.
 * UserChangePassword is the data structure for keeping
 * user change password form data. It is used by the 'changepassword' action of 'UserController'.
 */
class UserNewPassword extends CFormModel {
        public $email;
        public $verifyCode;
        
        public function rules() {
			return array(
				array('email', 'required'),
				// verifyCode needs to be entered correctly
				array('verifyCode', 'captcha', 'allowEmpty'=>!CCaptcha::checkRequirements()),
            );
        }

        /**
         * Declares attribute labels.
         */
        public function attributeLabels()
        {
                return array(
                        'email'=>"your eMail",
                        'verifyCode'=>'Bestätigung',
                );
        }
} 